var fs = require('fs')
var template = require('art-template')

fs.readFile('./tpl.html', function (err, data) {
    if (err){
        return console.log('404 not found')
    }
    var res = template.render(data.toString(),{
        name:'a-ke',
        province:'福州',
        title:'node服务端的模板测试',
        age:30,
        hobbies:['看电影', '听歌', '打台球', '看抖音']
    })
    console.log(res)
})